import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/container',
    method: 'post',
    data
  })
}

// export function getTableAPI(params) {
//   return request({
//     url: 'api/container',
//     method: 'get',
//     params
//   })
// }

export function del(ids) {
  return request({
    url: 'api/container/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/container',
    method: 'put',
    data
  })
}

// 创建容器移库
export function containerMoveAPI(data) {
  return request({
    url: '/api/moveWareHouseOrder/containerMoveWarehouse',
    method: 'post',
    data
  })
}

export default { add, edit, del }
